hvm/hpet: correctly gate the virtual HPET on HVM_PARAM_HPET_ENABLE
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Jan 2015 11:16:44 +0000 (12:16 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Jan 2015 11:16:44 +0000 (12:16 +0100)
commit433468d3b025fdb5b612df27a3b4347ae53ffb77
treeaa0475af0fa0fd3ddf5fa41f9d0a3c92b001621a
parent66500abc8dd66ec5df71dbf4ac3fd64b2d0cdcf8
hvm/hpet: correctly gate the virtual HPET on HVM_PARAM_HPET_ENABLE

c/s 3f8e22de7 "x86 hvm: Allow HPET to be configured as a per-domain config
option" introduced the parameter to conditionally enable the HPET.

However, having the check in hpet_range() does not have the intended effect.
As currently implemented, when the HPET is disabled, the range is not claimed
and an ioreq is forwarded to qemu, which implements an HPET itself.

Properly disable the HPET by always claiming the range, dropping writes and
reading ~0.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hpet.c